﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using System.Data.SqlClient;
using System.Data;
using System.Collections;

public partial class ventas : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {
    }

    protected void imgbt_buscar_Click(object sender, ImageClickEventArgs e)
    {
        ReportViewer1.LocalReport.Refresh();
    }
    protected void imgbt_buscar_factura_Click(object sender, ImageClickEventArgs e)
    {

        GridView_Factura_Detalles.DataBind();
    }

    protected void GView_Factura_Ventas_RowCommand(Object sender, GridViewCommandEventArgs e)
    {
        if (e.CommandName == "Leer")
        {
            GridView_Facturas.SelectedIndex = Convert.ToInt32(e.CommandArgument);
            String cod_Factura = GridView_Facturas.SelectedRow.Cells[0].Text;
            txt_Codigo_Factura_Seleccionada.Text = cod_Factura;
        }
    }

}
